#用类封装一个`MyMath` 类,实现加,减,乘,除,幂,开方.
class MyMath(object):
    object = 'number'


    def add(self, a, b): #加法运算
        return a + b

    def sub(self, a, b):  # 减法运算
        return a - b

    def mul(self, a, b):  # 乘法运算
        return a * b

    def eli(self, a, b):  # 除法运算
        return a / b

    def div(self, a, b):  # 整除运算
        return a // b

    def rem(self, a, b):  # 取余运算
        return a % b

    def sqr(self, a, b):  # 开方运算
        return a ** b





# 自由课题,创建多个实例  狗
class Dog():
    def __init__(self):
        self.eyes = 2
        self.feet = 4
        self.tail = 1

xiaohuang = Dog()

xiaohei = Dog()



#创建多个继承作业二 父类的子类

class SmallDog(Dog):
    size = 'small'

class MediumDog(Dog):
    size = 'medium'


class LargeDog(Dog):
    size = 'medium'

class poodle:
    def __int__(self):

        print()




if __name__ == "__main__":
   c = MyMath()
   print(c.add(5, 6))
   print(c.sub(5, 6))
   print(c.mul(5, 6))
   print(c.eli(5, 6))
   print(c.div(5, 6))
   print(c.rem(5, 6))
   print(c.sqr(5, 6))
   print(xiaohuang)
   print(xiaohei)
